package _spring_test._properties;

import java.io.IOException;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;

/**
 * @Author: huangya
 * @Date: 2020/5/18
 * @Description:
 */
public class Property3Test {

    public static void main(String[] args) throws IOException {
        ResourceBundle rb = new PropertyResourceBundle(ClassLoader.getSystemResourceAsStream("properties/test.properties"));
        String name = rb.getString("name");
        System.out.println(name);
    }
}
